package huawei.exam1;

import java.util.Scanner;

/**
 * @author : Rookie
 * @description :
 * @date : 2022/12/17
 */
public class HJ13 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            String orginStr = scanner.nextLine();
            String[] splitStr = orginStr.split(" ");
            StringBuffer sb = new StringBuffer();
            for (int i = splitStr.length - 1; i >= 0 ; i--) {
                sb.append(splitStr[i]).append(" ");
            }
            System.out.println(sb);
        }
    }
}
